<link href="/res/js/wysiwyg/jquery.wysiwyg.css" media="screen" rel="Stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/wysiwyg/jquery.wysiwyg.js"></script>
{literal}<script>
$(function()
{
    $('#wysiwyg').wysiwyg();
});
</script>{/literal}

<div class="add_category">
    <a href="/admin/category/">Категории</a> &rarr; Категория {$doc.name}
</div>
<form action="/admin/category/go/" method="post" enctype="multipart/form-data">
<input type="hidden" name="type" value="edit" />
<input type="hidden" name="id" value="{$doc.id}" />
	<div id="content">
			<div id="inner">
			<table cellspacing="0" cellpadding="4">
				<tbody class="edit">
					<tr>
						<th width="200px">Название категории</th>
						<td><input type="text" name="name" value="{$doc.name}" /></td>
					</tr>
					<tr>
						<th width="200px">Slug (без пробелов, на англиском языке)</th>
						<td><input type="text" name="slug" value="{$doc.slug}" /></td>
					</tr>
					<tr>
						<th width="200px">Описание</th>
						<td><textarea name="description" id="wysiwyg">{$doc.description}</textarea></td>
					</tr>
					<tr>
						<th width="200px">{if $doc.thumb}<a href="" class="screenshot" rel="/res/img/category/{$doc.thumb}">Картинка</a>{else}Добавить картинку{/if}</th>
						<td><input type="file" name="userfile" /></td>
					</tr>
					<tr>
						<th width="200px" class="video">{if $doc.video}<a class="video" href="/res/img/pages/{$doc.video}">Видеоролик</a>{else}Добавить видеоролик{/if}</th>
						<td><input type="file" name="uservideo" />{if $doc.video}<a class="deleteVideo" href="#" rel="{$doc.id}">Удалить</a>{/if}</td>
					</tr>
				</tbody>
			</table>
	</div></div>
	<br />
	<input type="submit" value="Сохранить" />
</form>